package Demo;

public class math {
    public static void main(String[] args) throws Exception {
        System.out.println(Math.abs(-10.2));
        System.out.println(Math.max(10,2));
        System.out.println(Math.log(Math.exp(1)));
        System.out.println(Math.round(2.222));
        System.out.println(Math.round(2.922));
        System.out.println(Math.pow(2,10));
        System.out.println(mathway.round(1.995589,5));
    }
}
class mathway{
    private mathway() {
    }
    public static double round(double num,int peace){
        return Math.round(num*Math.pow(10.0,peace))/Math.pow(10.0
                ,peace);
    }
}
